<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="always" name="referrer">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>信息详情</title>
    <link rel="stylesheet" href="/LianniuWeb/css/new/reset.css">
    <link rel="stylesheet" href="/LianniuWeb/css/new/information_detail.css">
    <link type="text/css" rel="stylesheet" href="/LianniuWeb/css/easydialog.css"/>
    <script type="text/javascript" src="/LianniuWeb/js/widget/easydialog.min.js"></script>
</head>
<body>
<div class="ranking_header">
    <div class="back_btn" onclick="window.location.href='/LianniuWeb/buyerOrder/mine.do'"></div>
    <p>个人信息</p>
    <span onclick="logout()">退出</span>
</div>
<div class="personal_box2">
    <span class="">头像</span>
    <p></p>
    <div id="photo_box"><span></span></div>
</div>
<div class="personal_box phone2">
    <span class="collection1">手机号码</span>
    <p></p>
    <div id="phone"></div>
</div>
<div class="personal_box name" onclick="javascript:change_name();">
    <span class="">用户名</span>
    <p></p>
    <div class="" id="buyerName"></div>
</div>
<div class="personal_box" onclick="javascript:editAddr();">
    <span class="">收货地址</span>
    <p></p>
</div>
<script src="/LianniuWeb/js/underscore/underscore.js"></script>
<script src="/LianniuWeb/js/commons/commons.js"></script>
<script src="/LianniuWeb/js/commons/util.js"></script>
<script src="/LianniuWeb/js/jquery/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/LianniuWeb/js/buyer/flexible.js"></script>
<script type="text/javascript" src="/LianniuWeb/js/buyer/mine_infomation.js"></script>
<script>
    //修改收货地址
    var editAddr = function (consigneeId) {
        window.location.href = server_url + "buyer/product/editConsigneeAddr.do?url=" + server_url + "/buyerOrder/mine.do";
    }

    $(function(){
        $.ajax({
            url:server_url + '/rest/frontUser/getFrontUser.do',
            data:{usersid:userid},
            success:function(data){
                console.log(data);
                if (data.data[0].picPath != null && data.data[0].picPath != ''){
                    $("#photo_box").css("background","#d6ffeb url("+data.data[0].picPath+") no-repeat center");
                    $("#photo_box").css("background-size","cover");
                }
            }
        })
    })
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?867c800f411683d2a7fa9eb1eabd9736";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>